#include<stdio.h>
int main()
{
    int i,j;
    long sum=0,term=1;
    for(i=1;i<=10;i++)
    {
        term=term*i;
        sum+=term;
    }
    printf("1!+2!+..+n!=%ld",sum);
}
